package com.logica.mdm.webfrontend.embedding.adapter;

import com.logica.mdm.webfrontend.models.party.PartySearchParams;
import com.logica.mdm.webfrontend.models.party.PartySearchResult;

/**
 * Internal embedding adapter, which only uses resources from this application.
 * @author Fabien Crespel <fabien.crespel@logica.com>
 */
public class InternalEmbeddingAdapter extends AbstractEmbeddingAdapter {

	@Override
	public String getPersonsHomeUrl() {
		return "/internal/persons";
	}
	
	@Override
	public String getPersonsAddUrl() {
		return "/internal/persons/add";
	}
	
	@Override
	public String getPersonsAddUrl(PartySearchParams partySearchParams) {
		return "/internal/persons/add";
	}
	
	@Override
	public String getPersonsAddUrl(PartySearchResult person) {
		return null;
	}

	@Override
	public String getPersonsShowUrl(PartySearchResult person) {
		return "/internal/persons/show";
	}

	@Override
	public String getPersonsEditUrl(PartySearchResult person) {
		return "/internal/persons/edit";
	}
	
	
	public String getBaseUrl() {
		return "";
	}

}
